package top.ranzhang.bean.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ran
 * @since 2025-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("child")
public class Child implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private LocalDate birthday;

    /**
     * 购买课时
     */
    private Integer buyHour;

    private Integer userId;

    /**
     * 使用课时
     */
    private Integer useHour;

    /**
     * 赠送课时
     */
    private Integer giveHour;

    /**
     * 1:男,0:女
     */
    private Integer sex;

    private String name;

    private String school;

    private LocalDateTime createTime;

}
